package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.MessageChatroomUser;
import com.zf.yichat.utils.response.FsResponse;
import org.apache.ibatis.annotations.Param;

public interface MessageChatroomUserMapper extends FsMapper<MessageChatroomUser> {

    /**
     * 根据userId和聊天室ID查询是否在该聊天室
     * @param userId
     * @param chatroomId
     * @return
     */
    MessageChatroomUser queryUserInChatroom(@Param("userId") Long userId,@Param("chatroomId") String chatroomId);
}